package cst.neu.neufooddemo.services;

import cst.neu.neufooddemo.beans.LoginBean;
import cst.neu.neufooddemo.beans.Result;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by xxe on 2017/10/14.
 */

public interface UserService {
    @GET("userLogin.do")
    Call<LoginBean> userLogin(@Query("username")String username,
                              @Query("userpass")String userpass);
    @GET("userRegister.do")
            Call<Result> register(
            @Query("username") String username,
            @Query("userpass") String userpass,
            @Query("mobilenum") String mobilenum,
            @Query("address") String address,
            @Query("comment") String comment
    );

}
